<form class="form-horizontal" name="CtrlForm" role="form" novalidate="novalidate" ng-submit="submit()" ng-controller='UserAddCtrl' style="margin:0 auto;">
	<div class="form-group has-feedback">
	  <label for="userid" class="col-md-3 control-label">帐号</label>
	  <div class="col-md-6">
		<div class="input-group">
			<input type="text" class="form-control" id="userid" name="userid" placeholder="请输入用户帐号" required ng-model='user.userid' />
			<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" ng-show="CtrlForm.userid.$dirty && CtrlForm.userid.$valid" style="margin-right:40px;"></span>
			<span class="input-group-addon" style="color:red;">必填</span>		
		</div>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <label for="password" class="col-md-3 control-label">密码</label>
	  <div class="col-md-6">
		<div class="input-group">
			<input type="password" class="form-control" id="password" name="password" placeholder="请输入密码，默认为111111" required ng-pattern="/^\w{6,}$/" ng-model='user.password'/>
			<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" ng-show="CtrlForm.password.$dirty && CtrlForm.password.$valid" style="margin-right:40px;"></span>
			<span class="input-group-addon" style="color:red;">必填</span>		
		</div>
	  </div>
	</div>
	
	<div class="form-group has-feedback">
	  <label for="rePassword" class="col-md-3 control-label">重复密码</label>
	  <div class="col-md-6">
		<div class="input-group">
			<input type="password" class="form-control" id="rePassword" name="rePassword" placeholder="再输一遍密码" required ng-model="user.rePassword"/>
			<span class="glyphicon glyphicon-ok form-control-feedback" aria-hidden="true" ng-show="(user.password==user.rePassword) && (user.rePassword)" style="margin-right:40px;"></span>
			<span class="input-group-addon" style="color:red;">必填</span>		
		</div>
	  </div>
	</div>		
	
	
	<div class="form-group has-feedback">
	  <label for="nick" class="col-md-3 control-label">昵称</label>
	  <div class="col-md-6">
		<input type="text" class="form-control" id="nick" name="nick" placeholder="请输入用户昵称" ng-model='user.nick' />
	  </div>
	</div>
   
	<div class="form-group has-feedback">
	  <label class="col-md-3 control-label">头像</label>
	  <div class="col-md-6">
		<input type="file" class="form-control" id="fileInput" name="avator['path']" file-model="myFile"/>		
	  </div>
	</div>
	<div class="form-group has-feedback">
		<div class="col-md-12">
		<include file="Image/crop" />
		</div>
	</div>
	
	<div class="form-group has-feedback">
	  <label for="description" class="col-md-3 control-label">备注</label>
	  <div class="col-md-6">
		<textarea class="form-control" rows="3" id="description" name="description" ng-model='user.description'></textarea>
	  </div>
	</div>
	

   <div class="form-group has-feedback">
      <div class="col-md-offset-3 col-md-6">		
		<button type="reset" class="btn btn-default" ng-click="reset()">重置</button>		
        <button type="submit" class="btn btn-primary" ng-disabled="CtrlForm.$pristine || CtrlForm.$invalid">保存</button>
      </div>
   </div>
</form>